package com.blobfish.fiction.book.validator;

import com.blobfish.fiction.book.constant.BookMessageEnum;
import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

/**
 * 下载小说验证器
 * @author huangbo
 */
public class DownloadTxtValidator extends Validator {
    @Override
    protected void validate(Controller controller) {
        validateRequiredString(0, BookMessageEnum.BOOK_NO_NOT_BLANK.getId(), BookMessageEnum.BOOK_NO_NOT_BLANK.getMessage());
    }

    @Override
    protected void handleError(Controller controller) {

    }
}
